<!-- Inicio Codigo feo para FB-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=151090545023142";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<% ruta_root = "http://200.16.7.111"%>
<% ruta = ruta_root+'/request_and_complaint/complaints/'+@request_and_complaint_complaint.id.to_s %>
<% titulo= '<meta property="og:title" content="'+@request_and_complaint_complaint.id_type+'" >'%>
<%=  content_for(:title) {
  titulo.html_safe
  } %>
<% url= '<meta property="og:url" content="'+ruta+'">'%>
<%=  content_for(:url) {
  url.html_safe
} %>
<%=  content_for(:type) {
  '<meta property="og:type" content="article">'.html_safe
} %>
<%imagen = '<meta property="og:image" content="'+ruta_root+'/images/pukara_logo2.png">'%>
<%=  content_for(:image) {
  imagen.html_safe
} %>
<%=  content_for(:site_map) {
  '<meta property="og:site_name" content="Pukara">'.html_safe
} %>

<h3>Denuncia Registrada</h3>

<p id="notice"><%= notice %></p>
<h1>Solicitud ( DEN0<%= @request_and_complaint_complaint.id %>)</h1>

<div class="shadow">
  <fieldset class="column-left4" width="200">
    <fieldset id="agrupacion" >
     
      <legend>Datos de Usuario Registrador</legend>


       <fieldset class="column-left">
      <p>
           <b>Usuario:</b>
            <%= @request_and_complaint_complaint.name %>
         </p>
         <p>
           <b>DNI:</b>
            <%= @request_and_complaint_complaint.dni %>
        </p>
       </fieldset>
      <fieldset class="column-right">
        <% if !@request_and_complaint_complaint.email.blank? %>
          <p>
             <b>E -Mail:</b>
              <%= @request_and_complaint_complaint.email %>
          </p>
           <%end%>
        <p>
             <b>Telefono:</b>
              <%= @request_and_complaint_complaint.phone %>
          </p>
         </fieldset>
   
  </fieldset>

  <fieldset id="agrupacion" >

      <legend>Datos de Solicitud</legend>

    <fieldset class="column-left2" >
      <p>
           <b>Codigo de Solicitud:</b>
           DEN0<%= @request_and_complaint_complaint.id %>
       </p>
       
       <p>
           <b>Fecha de Creacion:</b>
           DEN0<%= @request_and_complaint_complaint.created_at %>
       </p>
       <p>
           <b>Tipo de Denuncia:</b>
           <%= @request_and_complaint_complaint.obj_complaint_type.name %>
       </p>
       <p>
            <b>Descripción:  </b>
             <%= @request_and_complaint_complaint.description %>
       </p>

               <b>   </b>
     <b>    </b>
 </fieldset>
<%if !@request_and_complaint_complaint.avatar.blank? %>
      <fieldset class="column-right2"  >
        <fieldset id="agrupacion" >
        <legend>Foto:</legend>
        <div <%if @request_and_complaint_complaint.avatar_file_name.blank? %> style="display:none"<%end%>
        <p>
            <%cultural_heritage_cultural_heritage_avatar=@request_and_complaint_complaint%>

            <a href=<%=@request_and_complaint_complaint.avatar.url%> rel="lightbox[roadtrip]"><%= image_tag @request_and_complaint_complaint.avatar.url, :alt => "", :width => 150, :height => 150, :title => "Imagen de Denuncia"%></a>
          </p>
   
    
        </div>
</fieldset>
        <p>
           <b>Distrito:  </b>
        <%= @request_and_complaint_complaint.obj_district.name %>
          </p>
       <p>
        <b>Dirección:  </b>
          <%= @request_and_complaint_complaint.address %>
       </p>
    
      <%end%>
      </fieldset>

  
     <fieldset class="column-left" >

          <b>DATOS DE UBICACION</b>
           <b>   </b>
     <b>    </b>

          <% if !@request_and_complaint_complaint.department.blank? %>
           <p>
             <b>Departamento:  </b>
                <%= @request_and_complaint_complaint.obj_department.name %>
           </p>
           <%end%>
          <% if !@request_and_complaint_complaint.province.blank? %>
           <p>
            <b>Provincia:  </b>
            <%= @request_and_complaint_complaint.obj_province.name %>
           </p>
          <%end%>
           <% if !@request_and_complaint_complaint.district.blank? %>
          

        <%end%>
          </fieldset>
          <%#*<fieldset class="column-right" >%>
            

    <%#*</fieldset>%>

  </fieldset>
 <% if !@request_and_complaint_complaint.responsable.blank? || !@request_and_complaint_complaint.user.blank?  %>
           <fieldset id="agrupacion" >
      <legend> Usuario y Responsable </legend>

          <p>
             <b>Responsable:</b>
              <%= @request_and_complaint_complaint.responsable %>
          </p>
          <p>
             <b>Usuario:</b>
              <%= @request_and_complaint_complaint.user %>
          </p>
          </fieldset>
           <%end%>


  </fieldset>
<fieldset class="column-right4" width="200">
<fieldset id="agrupacion" width="200">
  <legend>Compartir</legend>
  <div class="fb-like" data-href="<%=ruta%>" data-send="false" data-layout="box_count" data-width="50" data-show-faces="false"></div>
  <br/><br/>
  <% l_url = litle_url(ruta)%>
  <a href="https://twitter.com/share" class="twitter-share-button" data-url="<%= l_url  %>" data-text="Sistema de Gestion de la Cultura Peruana Pukara" data-lang="es" data-hashtags="Pukara">Twittear</a>
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  <br/><br/>
  <!-- Place this tag where you want the +1 button to render -->
  <g:plusone size="small"></g:plusone>
  <!-- Place this render call where appropriate -->
  <script type="text/javascript">
    window.___gcfg = {lang: 'es-419'};

    (function() {
      var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
      po.src = 'https://apis.google.com/js/plusone.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
  </script>
</fieldset>
</fieldset>
  <div id="lineaform"></div>
<div class="fb-comments" data-href="<%=ruta%>" data-num-posts="4" data-width="470"></div>

</div>

<% if user_signed_in? && [5,2].include?(current_user.role)%>
<%= link_to 'Volver', request_and_complaint_complaints_path %>
<%end%>

